<%@ Control Language="C#" ClassName="NameSpaces" Inherits="Dimok.Web.UI.TableControl" %>

<script runat="server">
</script>

<asp:UpdatePanel ID="pnlRebateOffers" UpdateMode="Always" runat="server">
	<ContentTemplate>
		<UI:GridViewEx ID="grv" runat="server" AutoGenerateColumns="False" DataSourceID="ds"
			ShowFooter="True" AllowSorting="True" BackColor="Window" CellPadding="0" EnableTheming="True"
			Font-Names="verdana" EnableViewState="False" DataKeyNames="ID"
			ViewNameUpdate="t_NameSpace" ViewNameInsert="t_NameSpace"
			>
			<Columns>

				<!-- #include virtual = "~/Controls/_FieldTemplates/ID_.txt" -->
				<!-- #include virtual = "~/Controls/_FieldTemplates/Name.txt" -->

				<asp:TemplateField HeaderText="Parent" SortExpression="Parent">
					<ItemTemplate><asp:Label Text='<%#Eval("Parent") %>' runat="server" /></ItemTemplate>
					<EditItemTemplate>
						<asp:DropDownList SelectedValue='<%# Bind("ParentID") %>' ID="selParent" DataSourceID="ds" DataTextField="Name" DataValueField="ID" runat="server"></asp:DropDownList>
					</EditItemTemplate>
					<FooterTemplate><asp:DropDownList ID="ParentID" DataSourceID="ds" DataTextField="Name" DataValueField="ID" runat="server"></asp:DropDownList></FooterTemplate>
				</asp:TemplateField>


			</Columns>
		</UI:GridViewEx>
	</ContentTemplate>
</asp:UpdatePanel>
<DS:NameSpacesDataSource ID="ds" runat="server"></DS:NameSpacesDataSource>
